package com.xmb.wechat.common;

/**
 * @Author lijiangop
 * @CreateTime 2020/4/7 17:41
 */
public class Constant {

    //----------------------------------------------------------------------聊天头像------------------------------------------------------------------------
    //头像的宽度(占屏幕宽度)
    public static final float[] mChatIconWidth = new float[]{
            0.09f,
            0.09f,
            0.1f,
            0.105f,
            0.11f,
            0.112f,
            0.114f,
            0.116f,
            0.118f
    };

    //----------------------------------------------------------------------聊天昵称------------------------------------------------------------------------
    //聊天图片的宽度(与默认宽度的比例)
    public static final float[] mChatNickNameScale = new float[]{
            0.9f,
            0.93f,
            1f,
            1.1f,
            1.2f,
            1.25f,
            1.3f,
            1.35f,
            1.4f
    };

    //----------------------------------------------------------------------聊天文字------------------------------------------------------------------------
    //textView与默认值的比例(普通文字;系统提示；红包接收；)
    public static final float[] mChatCommonTvScale = new float[]{
            0.9f,
            0.93f,
            1f,
            1.13f,
            1.27f,
            1.4f,
            1.6f,
            1.8f,
            2f
    };
    //----------------------------------------------------------------------聊天语音------------------------------------------------------------------------
    //聊天语音textView与默认值的比例
    public static final float[] mChatVoiceTvScale  = new float[]{
            0.9f,
            0.93f,
            1f,
            1.1f,
            1.1f,
            1.2f,
            1.3f,
            1.4f,
            1.5f
    };

    //----------------------------------------------------------------------聊天时间------------------------------------------------------------------------
    //时间消息textView与默认值的比例
    public static final float[] mChatTimeTvScale = new float[]{
            0.9f,
            0.93f,
            1f,
            1.1f,
            1.2f,
            1.3f,
            1.4f,
            1.5f,
            1.6f
    };

    //----------------------------------------------------------------------聊天通话------------------------------------------------------------------------
    //通话消息textView与默认值的比例
    public static final float[] mChatCallTvScale = new float[]{
            0.9f,
            0.93f,
            1f,
            1.1f,
            1.2f,
            1.3f,
            1.4f,
            1.5f,
            1.6f
    };

    //----------------------------------------------------------------------聊天图片------------------------------------------------------------------------
    //聊天图片的宽度(与默认宽度的比例)
    public static final float[] mChatPicWithScale = new float[]{
            0.91f,
            0.92f,
            1f,
            1.05f,
            1.1f,
            1.11f,
            1.14f,
            1.17f,
            1.2f
    };

    //-----------------------------------------------------------------------红包-------------------------------------------------------------------------
    //红包/转账的宽度(占屏幕宽度；转账红包宽度保持一致)
    public static final float[] mRedPacketWidth          = new float[]{
            0.584f,
            0.586f,
            0.59f,
            0.59f,
            0.64f,
            0.68f,
            0.71f,
            0.71f,
            0.71f
    };
    //红包的宽高比
    public static final float[] mRedPacketDimensionRatio = new float[]{
            3f,
            3f,
            2.7f,
            2.45f,
            2.6f,
            2.65f,
            2.75f,
            2.75f,
            2.75f
    };
    //红包里的小红包imageView的宽度(占屏幕宽度)
    public static final float[] mRedPacketInnerIvWidth   = new float[]{
            0.076f,
            0.077f,
            0.08f,
            0.088f,
            0.09f,
            0.092f,
            0.094f,
            0.095f,
            0.096f
    };
    //红包消息类textView与默认值的比例
    public static final float[] mRedPacketTvScale        = new float[]{
            0.9f,
            0.93f,
            1f,
            1.1f,
            1.2f,
            1.4f,
            1.5f,
            1.6f,
            1.8f
    };

    //------------------------------------------------------------------------转账-------------------------------------------------------------------------
    //转账的宽高比
    public static final float[] mZhuanZhangDimensionRatio = new float[]{
            3.4f,
            3.3f,
            3f,
            2.45f,
            2.6f,
            2.65f,
            2.75f,
            2.75f,
            2.75f
    };
    //转账里的小转账imageView的宽度(占屏幕宽度)
    public static final float[] mZhuanZhangInnerIvWidth   = new float[]{
            0.075f,
            0.077f,
            0.085f,
            0.088f,
            0.09f,
            0.092f,
            0.094f,
            0.095f,
            0.096f
    };


    //-----------------------------------------------------------------------红包接收Item-------------------------------------------------------------------------
    //红包接收Item中ImageView的宽度的缩放比例(与默认宽度的比例)
    public static final float[] mRedPacketReceivedIvWidth = new float[]{
            0.9f,
            0.92f,
            1f,
            1.1f,
            1.2f,
            1.3f,
            1.5f,
            1.7f,
            1.9f
    };

    //-----------------------------------------------------------------------TitleLayout---------------------------------------------------------------
    public static final float[] mTitleLayoutCommonScale = new float[]{
            0.9f,
            0.92f,
            1f,
            1.1f,
            1.1f,
            1.17f,
            1.17f,
            1.17f,
            1.17f
    };
    public static final float[] mTitleLayoutTextScale   = new float[]{
            0.9f,
            0.93f,
            1f,
            1.1f,
            1.1f,
            1.2f,
            1.3f,
            1.4f,
            1.5f
    };

    //------------------------------------------------------------------------CharBat----------------------------------------------------------------------------
    //CharBat通用
    public static final float[] mChatBarCommonScale     = new float[]{
            0.9f,
            0.92f,
            1f,
            1.1f,
            1.1f,
            1.17f,
            1.17f,
            1.17f,
            1.17f
    };
    //CharBat通用TextView
    public static final float[] mChatBarCommonTextScale = new float[]{
            0.9f,
            0.93f,
            1f,
            1.1f,
            1.2f,
            1.3f,
            1.4f,
            1.5f,
            1.6f
    };
    //CharBat发送按钮
    public static final float[] mChatBarBtnSendScale    = new float[]{
            0.9f,
            0.93f,
            1f,
            1f,
            1f,
            1.1f,
            1.15f,
            1.2f,
            1.3f
    };

    public static class SP {
        public static final int    SP_DEFAULT_FONT_SCALE_LEVEL = 2;//默认的缩放level
        public static final String SP_KEY_FONT_SCALE_LEVEL     = "sp_key_font_scale_level";
    }

    //支付凭证类型
    public static class PayProofType {
        public static final int TYPE_WITHDRAW_START             = 1;
        public static final int TYPE_WITHDRAW_FINISH            = 2;
        public static final int TYPE_QRCODE_FINISH_NOTIFICATION = 3;
        public static final int TYPE_PAY_PROOF_GR               = 4;
        public static final int TYPE_PAY_PROOF_SH               = 5;
    }

    //交易记录类型
    public static class TradeHistoryType {
        public static final int TYPE_RED_PACKET = 1;
        public static final int TYPE_CHANGE     = 2;
        public static final int TYPE_QRCODE     = 3;
        public static final int TYPE_ZHUANZHANG = 4;
        public static final int TYPE_ZIDINGYI   = 5;
    }

    //图片类型
    public static class SourceType {
        public static final int AVATAR_SRC_DEFAULT            = -1;
        public static final int AVATAR_SRC_SDCARD             = 0;
        public static final int AVATAR_SRC_APP_INNER_ASSETS   = 1;
        public static final int AVATAR_SRC_APP_INNER_DRAWABLE = 2;
    }

    //账单类型
    public static class AliPayBillType {
        public static final int TYPE_ZDY  = 0;
        public static final int TYPE_WG   = 1;
        public static final int TYPE_TX   = 2;
        public static final int TYPE_HB   = 3;
        public static final int TYPE_ZZ   = 4;
        public static final int TYPE_SJCZ = 5;
        public static final int TYPE_HBHK = 6;
    }
}
